package com.sansi.pencilbook.service;

import com.sansi.pencilbook.DO.Result;

/**
 * 功能说明:
 *
 * @author lsy13
 */
public interface UseBookServer {

    public Result getBooksAll();

    public Result getBooksAll(int pageNum, int pageSize);

    //获得某一分类下的图书
    public Result getBooksByCategory(int categoryId);

    //分页获得分类后的图书
    public Result getBooksByCategory(int categoryId, int pageNum, int pageSize);

    //通过书名查询书籍
    public Result getBooksByName(String name);

    //分页获得相同书名的图书
    public Result getBooksByName(String name, int pageNum, int pageSize);

    //通过ISBN查询书籍
    public Result getBookByIsbn(String isbn);

    //通过作者查询书籍
    public Result getBooksByAuthor(String author);

    //分页获得作者的图书
    public Result getBooksByAuthor(String author, int pageNum, int pageSize);

    //通过出版社查询书籍
    public Result getBooksByPublisher(String publisher);

    //分页获得出版社的图书
    public Result getBooksByPublisher(String publisher, int pageNum, int pageSize);

    public Result getBooksByParam(String param);

}
